<? global $banners, $FullUrl; ?>
<?
	function Name_Banner($i)
    {
    	switch ($i) {
            case 0:
               return 'bannerOne';
                break;
            case 1:
                echo 'bannerTwo';
                break;
            case 2:
                echo 'bannerThree';
                break;
            default:
            	echo 'bannerThree';
                break;    
        }
    }
?>
<?
	if($banners)
    {
?>
<div class="banners"> 
	<?
        for($i = 0; $i < count($banners); $i++)
        {
            $banner = $banners[$i];
            $img = $FullUrl .'/' .$banner['link'];
            $url = $banner['url'];
            $name = $banner['name_vn'];
    ?>
	
  <!-- BOF- BANNER #1 display -->
  
  <div id="<?=Name_Banner($i)?>"><a href="<?=$url?>" target="_blank"><img src="<?=$img?>" alt="<?=$name?>" title="<?=$name?>" height="113" width="298"></a></div>
  <?
  	}
  ?>
  <!-- EOF- BANNER #1 display --> 
  
  
</div>
<?
	}
?>
